package com.pacyki.gcards;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class Splashscreen extends Activity{

	private int totalDelay = 300;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splashscreen);
		Thread splashTimer = new Thread(){
			
			public void run(){
				try {
					sleep(totalDelay);
					startActivity(new Intent("android.intent.action.GREETINGCARDS"));
				} catch (Exception e) {
					e.printStackTrace();
				}
				finally{
					finish();
				}
			};
		};
		splashTimer.start();
	};
};
